'use strict';
module.exports = (sequelize, DataTypes) => {
  const user = sequelize.define('user', {
    user_id: {
      type: DataTypes.INTEGER,
      primaryKey: true,
      autoIncrement: true
    },
    username: DataTypes.STRING,
    password: DataTypes.STRING,
    auth: DataTypes.STRING,
    lock: DataTypes.ENUM('0', '1'),
    created_at: {
      type: DataTypes.INTEGER
    },
    updated_at: {
      type: DataTypes.INTEGER
    }
  }, {
    timestamps: false
  });
  user.associate = function(models) {
    // associations can be defined here
  };
  return user;
};